library(parallelExe)
library(FLCore)
source('~/Desktop/flr/git/parallelExe/R/parallelExe-generic.R')
source('~/Desktop/flr/git/parallelExe/R/parallelExe-functions.R')
source('~/Desktop/flr/git/parallelExe/R/parallelExe-methods.R')

dirInp="/home/laurie/Desktop/redbook/alb/mse/Inputs/base"
file  =paste(dirInp,c("doitall.albn","albn.frq","albn.ini"),sep="/")

## create temp dir with executable ready to run
setFn("mfclo64")

get=function(files,to){
  
  mfcl         =readMFCL(files)
  catch.n(mfcl)=landings.n(mfcl)+discards.n(mfcl)
  
  save(mfcl,file=to)}

doitallFn("mfclo64",file) 
doitallFn("mfclo64",file,get=get(paste(dirInp,c("plot-01.par.rep","01.par"),sep="/"),"/tmp/mfcl.Rdata"))


